<template>
	<view class="bz p-2">
		<view class="bg-white b-radius2">
			<view class="header d-flex flex-nowrap a-center">
				<view class="header_list" :class="navIndex==0?'check border-r':''" @click="changeNav(0)">预约服务</view>
				<view class="header_list" :class="navIndex==1?'check border-l':''" @click="changeNav(1)">购买服务</view>
			</view>
			<view class="content bz py-2">
				<view v-if="navIndex==0">
					<view class="wrap_list bz p-2 d-flex flex-nowrap a-center" v-for="(item,index) in 5" :key="index" @click="navTo('/pages/shop/store/store')">
						<image src="/static/2.png" class="img" mode=""></image>
						<view class="flex-1 px-2">
							<view class="title">嗯哼</view>
							<view class="address my-1">万博万达店</view>
							<view class="d-flex flex-nowrap a-center">
								<view class="price">￥198.00</view>
								<view class="tag">起</view>
							</view>
						</view>
						<view class="btn">已预约</view>
					</view>
				</view>
				<view class="list" v-if="navIndex==1">
					<view class="bz p-2 bg-white b-radius1 list mb-2" v-for="(item,index) in 3" :key="index">
						<view class="list_header d-flex flex-nowrap a-center j-sb">
							<view class="order_num">
								订单号:100012110210200
							</view>
							<view class="order_status">
								已支付
							</view>
						</view>
						<view class="order_con py-2">
							<view class="pb-2 d-flex flex-nowrap a-center">
								<image src="/static/2.png" class="imgs" mode="aspectFill"></image>
								<view class="flex-1 px-2">
									<view class="good_name">肌活力保健膏</view>
									<view class="num">x1</view>
								</view>
								<view class="price">￥299.00</view>
							</view>
						</view>
						
						<view class="pt-2 d-flex flex-nowrap a-center">
							<view class="nums">共1件商品</view>
							<view class="flex-1 d-flex flex-nowrap j-end a-center">
								<view class="tag">合计：</view>
								<view class="all_price">￥299.00</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nav:['预约服务','购买服务'],
				navIndex:0,
			}
		},
		methods: {
			changeNav(e){
				this.navIndex=e;
			},
			jumpNext(item) {
				
				// uni.showModal({
				// 	title: '点击优惠券条目',
				// 	content: '点击优惠券条目 = ' + JSON.stringify(item)
				// })
			}
		}
	}
</script>

<style scoped lang="scss">
.header{
	height: 100rpx;
	border-radius: 20rpx 20rpx 0 0;
	overflow: hidden;
	.header_list{
		height: 100rpx;
		color: #D8B072;
		font-size: 30rpx;
		line-height: 100rpx;
		text-align: center;
		background-color: #fff;
		width: 100%;
	}
	.check{
		background-color: #D8B072;
		color: #fff;
	}
	.border-r{
		border-radius: 20rpx 0 20rpx 0;
	}
	.border-l{
		border-radius: 0rpx 20rpx 0rpx 20rpx;
	}
}

.list{
	border-bottom:5rpx solid #f8f8f8;
}

.list_header{
		height: 80rpx;
		// border-bottom: 1rpx solid #f8f8f8;
		.order_num{
			font-size: 30rpx;
			font-family: SourceHanSansCN;
			font-weight: 600;
			color: #363636;
		}
		.order_status{
			font-size: 25rpx;
			font-family: SourceHanSansCN;
			font-weight: 400;
			color: #8C8C8C;
		}
	}
	.imgs{
		width: 150rpx;
		height: 100rpx;
		border-radius: 15rpx;
	}
	.good_name{
		line-height: 45rpx;
		font-size: 30rpx;
		font-family: SourceHanSansCN;
		font-weight: 400;
		color: #363636;
	}
	.num{
		font-size: 25rpx;
		font-family: SourceHanSansCN;
		font-weight: 400;
		color: #999999;
	}
	.price{
		font-size: 28rpx;
		font-family: SourceHanSansCN;
		font-weight: 400;
		color: #363636;
	}
	.all_price{
		color: red;
		font-weight: bold;
	}
	.btn{
		width: 82rpx;
		line-height: 35rpx;
		text-align: center;
		height: 35rpx;
		background: #2E4E7E;
		border-radius: 18rpx;
		font-size: 23rpx;
		font-family: SourceHanSansCN;
		font-weight: 400;
		color: #FFFFFF;
	}
	
	.wrap_list{
		border-bottom: 1rpx solid #f8f8f8;
		.img{
			height: 100rpx;
			width: 100rpx;
			border-radius: 50%;
		}
		.title{
			height: 40rpx;
			line-height: 40rpx;
			font-size: 30rpx;
			font-family: SourceHanSansCN;
			font-weight: 400;
			color: #363636;
		}
		.address{
			font-size: 25rpx;
			font-family: SourceHanSansCN;
			font-weight: 400;
			color: #B2B2B2;
		}
		.price{
			font-size: 23rpx;
			font-family: SourceHanSansCN;
			font-weight: bold;
			color: #C52525;
		}
		.tag{
			font-size: 23rpx;
			font-family: SourceHanSansCN;
			font-weight: bold;
			color: #B2B2B2;
		}
		.btn{
			width: 90rpx;
			height: 40rpx;
			line-height: 40rpx;
			background: #2E4E7E;
			border-radius: 20rpx;
			font-size: 25rpx;
			font-family: SourceHanSansCN;
			font-weight: 400;
			color: #FFFFFF;
			text-align: center;
		}
	}
</style>
